package com.question.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 用户实体类（普通用户、管理员）
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Long userId;
    private String username;
    private String passwordHash;
    private String email;
    private LocalDateTime createdAt;
    private String professional;
    // 1 是管理员 0 是普通用户
    private boolean isAdmin;
}
